﻿using System;
using UnityEngine;

namespace E.Story
{
    /// <summary>
    /// 变量数据
    /// </summary>
    [Serializable]
    public class VarData
    {
        [SerializeField] private string key;
        [SerializeField] private int value;

        /// <summary>
        /// 变量名
        /// </summary>
        public string Key { get => key; set => key = value; }

        /// <summary>
        /// 变量值 
        /// </summary>
        public int Value { get => value; set => this.value = value; }


        public VarData(string key, int value = 0) 
        { 
            this.key = key;
            this.value = value;
        }
    }
}